package com.zf.shopping.dao;

import com.zf.shopping.model.CommodityCategory;
import com.zf.shopping.model.CommodityCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CommodityCategoryMapper {
    long countByExample(CommodityCategoryExample example);

    int deleteByExample(CommodityCategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(CommodityCategory record);

    int insertSelective(CommodityCategory record);

    List<CommodityCategory> selectByExample(CommodityCategoryExample example);

    CommodityCategory selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") CommodityCategory record, @Param("example") CommodityCategoryExample example);

    int updateByExample(@Param("record") CommodityCategory record, @Param("example") CommodityCategoryExample example);

    int updateByPrimaryKeySelective(CommodityCategory record);

    int updateByPrimaryKey(CommodityCategory record);
}